class Animal:
  def __init__(self):
    self.eyes = 2
    self.ears = 2
    self.legs = 4

  def sleep(self):
    sleep_time = "夜晚"
    return sleep_time


class Cat(Animal):
  def __init__(self):
    super().__init__()
    self.name = "咪咪"

  def jump(self):
    self.jump_high = True
    return self.jump_high

  def sleep(self):
    self.sleep_time = "白天"
    return self.sleep_time


class Dog(Animal):
  def __init__(self):
    super().__init__()
    self.name = "修勾"

  def jump(self):
    self.jump_high = False
    return self.jump_high

  def sleep(self):
    return super(Dog, self).sleep()


cat = Cat()
print(f"{cat.name}有{cat.eyes}只眼睛，{cat.ears}只耳朵，{cat.legs}条腿")
print(f"{cat.name}在{cat.sleep()}睡")
print()
dog = Dog()
print(f"{dog.name}有{dog.eyes}只眼睛，{dog.ears}只耳朵，{dog.legs}条腿")
print(f"{dog.name}在{dog.sleep()}睡")





